﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharedLib.BasicServices.MessageFramework;
using Tracy.Messages;

namespace Tracy.Handlers
{
    public abstract class TaskMessageHandler<T> : TaskMessageHandler where T : TaskMessage
    {
        protected override void ProcessMessage(TaskMessage msg)
        {
            if (msg is T)
            {
                ProcessMessage((T)msg);
            }
        }

        protected virtual void ProcessMessage(T msg)
        {

        }
    }
}